package com.fs.jzzn.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.fs.jzzn.pojo.Supplier;
/**
 * @author TiddlerCJ
 */
public interface SupplierRepository extends JpaRepository<Supplier,String>, JpaSpecificationExecutor<Supplier>{
	
	@Query(value=" SELECT *  FROM p_supplier  a  where  a.creater_id=?1 limit 1  ",nativeQuery=true)
	Supplier findByCreaterId(String createrId);
}
